package com.ruoyi.restaurant.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 点餐列对象 sys_diancan
 * 
 * @author ruoyi
 * @date 2022-04-18
 */
public class SysDiancan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 点餐表ID */
    private Integer diancanId;

    /** 顾客id */
    @Excel(name = "顾客id")
    private Integer customerId;

    /** 餐品名称 */
    @Excel(name = "餐品名称")
    private String itemNames;

    /** 餐品项目价格 */
    @Excel(name = "餐品项目价格")
    private Integer itemPrice;

    /** 餐品项目数量 */
    @Excel(name = "餐品项目数量")
    private Long itemQuantity;

    /** 餐品项目折扣 */
    @Excel(name = "餐品项目折扣")
    private BigDecimal itemDiscount;

    /** 查询餐品列表List(前端下拉框多选的餐品List) **/
    private String[] itemNamesList;

    public void setItemNamesList(String[] itemNamesList){this.itemNamesList = itemNamesList;}

    public String[] getItemNamesList(){return itemNamesList;}

    /** 查询数量列表List(前端下拉框多选的数量List) **/

    private long[] itemQuantityList;



    /** 查询价格的List集合 **/
    private Integer[] itemPriceList;

    public Integer[] getItemPriceList() {
        return itemPriceList;
    }

    public void setItemPriceList(Integer[] itemPriceList) {
        this.itemPriceList = itemPriceList;
    }


    public void setItemQuantityList(long[] itemQuantityList){this.itemQuantityList = itemQuantityList;}


    public long[] getItemQuantityList(){return itemQuantityList;}


    public void setDiancanId(Integer diancanId) 
    {
        this.diancanId = diancanId;
    }

    public Integer getDiancanId() 
    {
        return diancanId;
    }
    public void setCustomerId(Integer customerId) 
    {
        this.customerId = customerId;
    }

    public Integer getCustomerId() 
    {
        return customerId;
    }
    public void setItemNames(String itemNames) 
    {
        this.itemNames = itemNames;
    }

    public String getItemNames() 
    {
        return itemNames;
    }
    public void setItemPrice(Integer itemPrice) 
    {
        this.itemPrice = itemPrice;
    }

    public Integer getItemPrice() 
    {
        return itemPrice;
    }
    public void setItemQuantity(Long itemQuantity) 
    {
        this.itemQuantity = itemQuantity;
    }

    public Long getItemQuantity() 
    {
        return itemQuantity;
    }
    public void setItemDiscount(BigDecimal itemDiscount) 
    {
        this.itemDiscount = itemDiscount;
    }

    public BigDecimal getItemDiscount() 
    {
        return itemDiscount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("diancanId", getDiancanId())
            .append("customerId", getCustomerId())
            .append("itemNames", getItemNames())
            .append("itemPrice", getItemPrice())
            .append("itemQuantity", getItemQuantity())
            .append("itemDiscount", getItemDiscount())
            .toString();
    }
}
